<template>
	<div id="app">
		<!-- {{ $store.state.count }} -->
		<router-view />
	</div>
</template>
<script>
// import axios from 'axios'
// import axios from '@/api/instance'
export default {
	created() {
		// this.$axios.get('/cn/oapi/configs/web/banners/040101,040201').then((res) => {
		// 	console.log(res)
		// })
		this.$axios
			.post('/user/login', {
				username: 'admin',
				// password: 123456,
				password: 123456,
			})
			.then((res) => {
				console.log(res)
			})
		this.$axios
			.get('/user/getCode', {
				params: {
					id: 123,
				},
			})
			.then((res) => {
				console.log(res)
			})
		this.$axios
			.post('/user/loginWithCode', {
				phone: 18988832323,
				code: 123456,
			})
			.then((res) => {
				console.log(res)
			})
	},
}
</script>
<style lang="scss">
#app {
	font-family: Avenir, Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-align: center;
	color: #2c3e50;
}

nav {
	padding: 30px;

	a {
		font-weight: bold;
		color: #2c3e50;

		&.router-link-exact-active {
			color: #42b983;
		}
	}
}
</style>
